<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkTextView</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 2 Reference Manual">
<link rel="up" href="TextWidgetObjects.html" title="Multiline Text Editor">
<link rel="prev" href="GtkTextTagTable.html" title="GtkTextTagTable">
<link rel="next" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GtkTextTagTable.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="TextWidgetObjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 2 Reference Manual</th>
<td><a accesskey="n" href="TreeWidgetObjects.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GtkTextView.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#GtkTextView.description" class="shortcut">Description</a>
                   | 
                  <a href="#GtkTextView.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#GtkTextView.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
                   | 
                  <a href="#GtkTextView.properties" class="shortcut">Properties</a>
                   | 
                  <a href="#GtkTextView.style-properties" class="shortcut">Style Properties</a>
                   | 
                  <a href="#GtkTextView.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry">
<a name="GtkTextView"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GtkTextView.top_of_page"></a>GtkTextView</span></h2>
<p>GtkTextView — Widget that displays a GtkTextBuffer</p>
</td>
<td valign="top" align="right"><img src="multiline-text.png"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="GtkTextView.synopsis"></a><h2>Synopsis</h2>
<a name="GtkTextChildAnchor"></a><pre class="synopsis">
#include &lt;gtk/gtk.h&gt;

struct              <a class="link" href="GtkTextView.html#GtkTextView-struct" title="struct GtkTextView">GtkTextView</a>;
enum                <a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType">GtkTextWindowType</a>;
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkTextView.html#gtk-text-view-new" title="gtk_text_view_new ()">gtk_text_view_new</a>                   (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkTextView.html#gtk-text-view-new-with-buffer" title="gtk_text_view_new_with_buffer ()">gtk_text_view_new_with_buffer</a>       (<em class="parameter"><code><a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> *buffer</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-buffer" title="gtk_text_view_set_buffer ()">gtk_text_view_set_buffer</a>            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> *buffer</code></em>);
<a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="returnvalue">GtkTextBuffer</span></a> *     <a class="link" href="GtkTextView.html#gtk-text-view-get-buffer" title="gtk_text_view_get_buffer ()">gtk_text_view_get_buffer</a>            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-scroll-to-mark" title="gtk_text_view_scroll_to_mark ()">gtk_text_view_scroll_to_mark</a>        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> within_margin</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_align</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xalign</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> yalign</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-scroll-to-iter" title="gtk_text_view_scroll_to_iter ()">gtk_text_view_scroll_to_iter</a>        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> within_margin</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_align</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xalign</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> yalign</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-scroll-mark-onscreen" title="gtk_text_view_scroll_mark_onscreen ()">gtk_text_view_scroll_mark_onscreen</a>  (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-move-mark-onscreen" title="gtk_text_view_move_mark_onscreen ()">gtk_text_view_move_mark_onscreen</a>    (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-place-cursor-onscreen" title="gtk_text_view_place_cursor_onscreen ()">gtk_text_view_place_cursor_onscreen</a> (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-get-visible-rect" title="gtk_text_view_get_visible_rect ()">gtk_text_view_get_visible_rect</a>      (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../gdk/gdk-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *visible_rect</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-get-iter-location" title="gtk_text_view_get_iter_location ()">gtk_text_view_get_iter_location</a>     (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="../gdk/gdk-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *location</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-get-line-at-y" title="gtk_text_view_get_line_at_y ()">gtk_text_view_get_line_at_y</a>         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *target_iter</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *line_top</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-get-line-yrange" title="gtk_text_view_get_line_yrange ()">gtk_text_view_get_line_yrange</a>       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *y</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *height</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-get-iter-at-location" title="gtk_text_view_get_iter_at_location ()">gtk_text_view_get_iter_at_location</a>  (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-get-iter-at-position" title="gtk_text_view_get_iter_at_position ()">gtk_text_view_get_iter_at_position</a>  (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *trailing</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-buffer-to-window-coords" title="gtk_text_view_buffer_to_window_coords ()">gtk_text_view_buffer_to_window_coords</a>
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> buffer_x</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> buffer_y</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *window_x</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *window_y</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-window-to-buffer-coords" title="gtk_text_view_window_to_buffer_coords ()">gtk_text_view_window_to_buffer_coords</a>
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> window_x</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> window_y</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *buffer_x</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *buffer_y</code></em>);
<a href="../gdk/gdk-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         <a class="link" href="GtkTextView.html#gtk-text-view-get-window" title="gtk_text_view_get_window ()">gtk_text_view_get_window</a>            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>);
<a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="returnvalue">GtkTextWindowType</span></a>   <a class="link" href="GtkTextView.html#gtk-text-view-get-window-type" title="gtk_text_view_get_window_type ()">gtk_text_view_get_window_type</a>       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../gdk/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-border-window-size" title="gtk_text_view_set_border_window_size ()">gtk_text_view_set_border_window_size</a>
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> type</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> size</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="GtkTextView.html#gtk-text-view-get-border-window-size" title="gtk_text_view_get_border_window_size ()">gtk_text_view_get_border_window_size</a>
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> type</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-forward-display-line" title="gtk_text_view_forward_display_line ()">gtk_text_view_forward_display_line</a>  (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-backward-display-line" title="gtk_text_view_backward_display_line ()">gtk_text_view_backward_display_line</a> (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-forward-display-line-end" title="gtk_text_view_forward_display_line_end ()">gtk_text_view_forward_display_line_end</a>
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-backward-display-line-start" title="gtk_text_view_backward_display_line_start ()">gtk_text_view_backward_display_line_start</a>
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-starts-display-line" title="gtk_text_view_starts_display_line ()">gtk_text_view_starts_display_line</a>   (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-move-visually" title="gtk_text_view_move_visually ()">gtk_text_view_move_visually</a>         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> count</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-add-child-at-anchor" title="gtk_text_view_add_child_at_anchor ()">gtk_text_view_add_child_at_anchor</a>   (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);
struct              <a class="link" href="GtkTextView.html#GtkTextChildAnchor-struct" title="struct GtkTextChildAnchor">GtkTextChildAnchor</a>;
<a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="returnvalue">GtkTextChildAnchor</span></a> * <a class="link" href="GtkTextView.html#gtk-text-child-anchor-new" title="gtk_text_child_anchor_new ()">gtk_text_child_anchor_new</a>          (<em class="parameter"><code><span class="type">void</span></code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             <a class="link" href="GtkTextView.html#gtk-text-child-anchor-get-widgets" title="gtk_text_child_anchor_get_widgets ()">gtk_text_child_anchor_get_widgets</a>   (<em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-child-anchor-get-deleted" title="gtk_text_child_anchor_get_deleted ()">gtk_text_child_anchor_get_deleted</a>   (<em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-add-child-in-window" title="gtk_text_view_add_child_in_window ()">gtk_text_view_add_child_in_window</a>   (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> which_window</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xpos</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ypos</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-move-child" title="gtk_text_view_move_child ()">gtk_text_view_move_child</a>            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xpos</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ypos</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-wrap-mode" title="gtk_text_view_set_wrap_mode ()">gtk_text_view_set_wrap_mode</a>         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextTag.html#GtkWrapMode" title="enum GtkWrapMode"><span class="type">GtkWrapMode</span></a> wrap_mode</code></em>);
<a class="link" href="GtkTextTag.html#GtkWrapMode" title="enum GtkWrapMode"><span class="returnvalue">GtkWrapMode</span></a>         <a class="link" href="GtkTextView.html#gtk-text-view-get-wrap-mode" title="gtk_text_view_get_wrap_mode ()">gtk_text_view_get_wrap_mode</a>         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-editable" title="gtk_text_view_set_editable ()">gtk_text_view_set_editable</a>          (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-get-editable" title="gtk_text_view_get_editable ()">gtk_text_view_get_editable</a>          (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-cursor-visible" title="gtk_text_view_set_cursor_visible ()">gtk_text_view_set_cursor_visible</a>    (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-get-cursor-visible" title="gtk_text_view_get_cursor_visible ()">gtk_text_view_get_cursor_visible</a>    (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-overwrite" title="gtk_text_view_set_overwrite ()">gtk_text_view_set_overwrite</a>         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> overwrite</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-get-overwrite" title="gtk_text_view_get_overwrite ()">gtk_text_view_get_overwrite</a>         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-pixels-above-lines" title="gtk_text_view_set_pixels_above_lines ()">gtk_text_view_set_pixels_above_lines</a>
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> pixels_above_lines</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="GtkTextView.html#gtk-text-view-get-pixels-above-lines" title="gtk_text_view_get_pixels_above_lines ()">gtk_text_view_get_pixels_above_lines</a>
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-pixels-below-lines" title="gtk_text_view_set_pixels_below_lines ()">gtk_text_view_set_pixels_below_lines</a>
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> pixels_below_lines</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="GtkTextView.html#gtk-text-view-get-pixels-below-lines" title="gtk_text_view_get_pixels_below_lines ()">gtk_text_view_get_pixels_below_lines</a>
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-pixels-inside-wrap" title="gtk_text_view_set_pixels_inside_wrap ()">gtk_text_view_set_pixels_inside_wrap</a>
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> pixels_inside_wrap</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="GtkTextView.html#gtk-text-view-get-pixels-inside-wrap" title="gtk_text_view_get_pixels_inside_wrap ()">gtk_text_view_get_pixels_inside_wrap</a>
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-justification" title="gtk_text_view_set_justification ()">gtk_text_view_set_justification</a>     (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="type">GtkJustification</span></a> justification</code></em>);
<a class="link" href="gtk-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="returnvalue">GtkJustification</span></a>    <a class="link" href="GtkTextView.html#gtk-text-view-get-justification" title="gtk_text_view_get_justification ()">gtk_text_view_get_justification</a>     (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-left-margin" title="gtk_text_view_set_left_margin ()">gtk_text_view_set_left_margin</a>       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> left_margin</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="GtkTextView.html#gtk-text-view-get-left-margin" title="gtk_text_view_get_left_margin ()">gtk_text_view_get_left_margin</a>       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-right-margin" title="gtk_text_view_set_right_margin ()">gtk_text_view_set_right_margin</a>      (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> right_margin</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="GtkTextView.html#gtk-text-view-get-right-margin" title="gtk_text_view_get_right_margin ()">gtk_text_view_get_right_margin</a>      (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-indent" title="gtk_text_view_set_indent ()">gtk_text_view_set_indent</a>            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> indent</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="GtkTextView.html#gtk-text-view-get-indent" title="gtk_text_view_get_indent ()">gtk_text_view_get_indent</a>            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-tabs" title="gtk_text_view_set_tabs ()">gtk_text_view_set_tabs</a>              (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#PangoTabArray"><span class="type">PangoTabArray</span></a> *tabs</code></em>);
<a href="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#PangoTabArray"><span class="returnvalue">PangoTabArray</span></a> *     <a class="link" href="GtkTextView.html#gtk-text-view-get-tabs" title="gtk_text_view_get_tabs ()">gtk_text_view_get_tabs</a>              (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-accepts-tab" title="gtk_text_view_set_accepts_tab ()">gtk_text_view_set_accepts_tab</a>       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> accepts_tab</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-get-accepts-tab" title="gtk_text_view_get_accepts_tab ()">gtk_text_view_get_accepts_tab</a>       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<a class="link" href="GtkTextTag.html#GtkTextAttributes" title="struct GtkTextAttributes"><span class="returnvalue">GtkTextAttributes</span></a> * <a class="link" href="GtkTextView.html#gtk-text-view-get-default-attributes" title="gtk_text_view_get_default_attributes ()">gtk_text_view_get_default_attributes</a>
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-im-context-filter-keypress" title="gtk_text_view_im_context_filter_keypress ()">gtk_text_view_im_context_filter_keypress</a>
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../gdk/gdk-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> *event</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-reset-im-context" title="gtk_text_view_reset_im_context ()">gtk_text_view_reset_im_context</a>      (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     <a class="link" href="GtkTextView.html#gtk-text-view-get-hadjustment" title="gtk_text_view_get_hadjustment ()">gtk_text_view_get_hadjustment</a>       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     <a class="link" href="GtkTextView.html#gtk-text-view-get-vadjustment" title="gtk_text_view_get_vadjustment ()">gtk_text_view_get_vadjustment</a>       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
#define             <a class="link" href="GtkTextView.html#GTK-TEXT-VIEW-PRIORITY-VALIDATE:CAPS" title="GTK_TEXT_VIEW_PRIORITY_VALIDATE">GTK_TEXT_VIEW_PRIORITY_VALIDATE</a>
</pre>
</div>
<div class="refsect1">
<a name="GtkTextView.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
         +----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
               +----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
                     +----<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
                           +----GtkTextView
</pre>
<pre class="synopsis">
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----GtkTextChildAnchor
</pre>
</div>
<div class="refsect1">
<a name="GtkTextView.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GtkTextView implements
 AtkImplementorIface and  <a class="link" href="GtkBuildable.html" title="GtkBuildable">GtkBuildable</a>.</p>
</div>
<div class="refsect1">
<a name="GtkTextView.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a class="link" href="GtkTextView.html#GtkTextView--accepts-tab" title='The "accepts-tab" property'>accepts-tab</a>"              <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write
  "<a class="link" href="GtkTextView.html#GtkTextView--buffer" title='The "buffer" property'>buffer</a>"                   <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>*        : Read / Write
  "<a class="link" href="GtkTextView.html#GtkTextView--cursor-visible" title='The "cursor-visible" property'>cursor-visible</a>"           <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write
  "<a class="link" href="GtkTextView.html#GtkTextView--editable" title='The "editable" property'>editable</a>"                 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write
  "<a class="link" href="GtkTextView.html#GtkTextView--im-module" title='The "im-module" property'>im-module</a>"                <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write
  "<a class="link" href="GtkTextView.html#GtkTextView--indent" title='The "indent" property'>indent</a>"                   <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
  "<a class="link" href="GtkTextView.html#GtkTextView--justification" title='The "justification" property'>justification</a>"            <a class="link" href="gtk-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="type">GtkJustification</span></a>      : Read / Write
  "<a class="link" href="GtkTextView.html#GtkTextView--left-margin" title='The "left-margin" property'>left-margin</a>"              <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
  "<a class="link" href="GtkTextView.html#GtkTextView--overwrite" title='The "overwrite" property'>overwrite</a>"                <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write
  "<a class="link" href="GtkTextView.html#GtkTextView--pixels-above-lines" title='The "pixels-above-lines" property'>pixels-above-lines</a>"       <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
  "<a class="link" href="GtkTextView.html#GtkTextView--pixels-below-lines" title='The "pixels-below-lines" property'>pixels-below-lines</a>"       <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
  "<a class="link" href="GtkTextView.html#GtkTextView--pixels-inside-wrap" title='The "pixels-inside-wrap" property'>pixels-inside-wrap</a>"       <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
  "<a class="link" href="GtkTextView.html#GtkTextView--right-margin" title='The "right-margin" property'>right-margin</a>"             <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
  "<a class="link" href="GtkTextView.html#GtkTextView--tabs" title='The "tabs" property'>tabs</a>"                     <a href="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#PangoTabArray"><span class="type">PangoTabArray</span></a>*        : Read / Write
  "<a class="link" href="GtkTextView.html#GtkTextView--wrap-mode" title='The "wrap-mode" property'>wrap-mode</a>"                <a class="link" href="GtkTextTag.html#GtkWrapMode" title="enum GtkWrapMode"><span class="type">GtkWrapMode</span></a>           : Read / Write
</pre>
</div>
<div class="refsect1">
<a name="GtkTextView.style-properties"></a><h2>Style Properties</h2>
<pre class="synopsis">
  "<a class="link" href="GtkTextView.html#GtkTextView--s-error-underline-color" title='The "error-underline-color" style property'>error-underline-color</a>"    <a href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"><span class="type">GdkColor</span></a>*             : Read
</pre>
</div>
<div class="refsect1">
<a name="GtkTextView.signals"></a><h2>Signals</h2>
<pre class="synopsis">
  "<a class="link" href="GtkTextView.html#GtkTextView-backspace" title='The "backspace" signal'>backspace</a>"                                      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
  "<a class="link" href="GtkTextView.html#GtkTextView-copy-clipboard" title='The "copy-clipboard" signal'>copy-clipboard</a>"                                 : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
  "<a class="link" href="GtkTextView.html#GtkTextView-cut-clipboard" title='The "cut-clipboard" signal'>cut-clipboard</a>"                                  : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
  "<a class="link" href="GtkTextView.html#GtkTextView-delete-from-cursor" title='The "delete-from-cursor" signal'>delete-from-cursor</a>"                             : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
  "<a class="link" href="GtkTextView.html#GtkTextView-insert-at-cursor" title='The "insert-at-cursor" signal'>insert-at-cursor</a>"                               : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
  "<a class="link" href="GtkTextView.html#GtkTextView-move-cursor" title='The "move-cursor" signal'>move-cursor</a>"                                    : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
  "<a class="link" href="GtkTextView.html#GtkTextView-move-viewport" title='The "move-viewport" signal'>move-viewport</a>"                                  : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
  "<a class="link" href="GtkTextView.html#GtkTextView-page-horizontally" title='The "page-horizontally" signal'>page-horizontally</a>"                              : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
  "<a class="link" href="GtkTextView.html#GtkTextView-paste-clipboard" title='The "paste-clipboard" signal'>paste-clipboard</a>"                                : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
  "<a class="link" href="GtkTextView.html#GtkTextView-populate-popup" title='The "populate-popup" signal'>populate-popup</a>"                                 : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
  "<a class="link" href="GtkTextView.html#GtkTextView-preedit-changed" title='The "preedit-changed" signal'>preedit-changed</a>"                                : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
  "<a class="link" href="GtkTextView.html#GtkTextView-select-all" title='The "select-all" signal'>select-all</a>"                                     : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
  "<a class="link" href="GtkTextView.html#GtkTextView-set-anchor" title='The "set-anchor" signal'>set-anchor</a>"                                     : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
  "<a class="link" href="GtkTextView.html#GtkTextView-set-scroll-adjustments" title='The "set-scroll-adjustments" signal'>set-scroll-adjustments</a>"                         : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
  "<a class="link" href="GtkTextView.html#GtkTextView-toggle-cursor-visible" title='The "toggle-cursor-visible" signal'>toggle-cursor-visible</a>"                          : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
  "<a class="link" href="GtkTextView.html#GtkTextView-toggle-overwrite" title='The "toggle-overwrite" signal'>toggle-overwrite</a>"                               : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
</pre>
</div>
<div class="refsect1">
<a name="GtkTextView.description"></a><h2>Description</h2>
<p>
You may wish to begin by reading the <a class="link" href="TextWidget.html" title="Text Widget Overview">text widget
conceptual overview</a> which gives an overview of all the objects and data
types related to the text widget and how they work together.
</p>
<p>
</p>
</div>
<div class="refsect1">
<a name="GtkTextView.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkTextView-struct"></a><h3>struct GtkTextView</h3>
<pre class="programlisting">struct GtkTextView;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextWindowType"></a><h3>enum GtkTextWindowType</h3>
<pre class="programlisting">typedef enum {
  GTK_TEXT_WINDOW_PRIVATE,
  GTK_TEXT_WINDOW_WIDGET,
  GTK_TEXT_WINDOW_TEXT,
  GTK_TEXT_WINDOW_LEFT,
  GTK_TEXT_WINDOW_RIGHT,
  GTK_TEXT_WINDOW_TOP,
  GTK_TEXT_WINDOW_BOTTOM
} GtkTextWindowType;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-new"></a><h3>gtk_text_view_new ()</h3>
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_text_view_new                   (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>. If you don't call <a class="link" href="GtkTextView.html#gtk-text-view-set-buffer" title="gtk_text_view_set_buffer ()"><code class="function">gtk_text_view_set_buffer()</code></a>
before using the text view, an empty default buffer will be created
for you. Get the buffer with <a class="link" href="GtkTextView.html#gtk-text-view-get-buffer" title="gtk_text_view_get_buffer ()"><code class="function">gtk_text_view_get_buffer()</code></a>. If you want
to specify your own buffer, consider <a class="link" href="GtkTextView.html#gtk-text-view-new-with-buffer" title="gtk_text_view_new_with_buffer ()"><code class="function">gtk_text_view_new_with_buffer()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-new-with-buffer"></a><h3>gtk_text_view_new_with_buffer ()</h3>
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_text_view_new_with_buffer       (<em class="parameter"><code><a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> *buffer</code></em>);</pre>
<p>
Creates a new <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> widget displaying the buffer
<em class="parameter"><code>buffer</code></em>. One buffer can be shared among many widgets.
<em class="parameter"><code>buffer</code></em> may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to create a default buffer, in which case
this function is equivalent to <a class="link" href="GtkTextView.html#gtk-text-view-new" title="gtk_text_view_new ()"><code class="function">gtk_text_view_new()</code></a>. The
text view adds its own reference count to the buffer; it does not
take over an existing reference.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-buffer"></a><h3>gtk_text_view_set_buffer ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_buffer            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> *buffer</code></em>);</pre>
<p>
Sets <em class="parameter"><code>buffer</code></em> as the buffer being displayed by <em class="parameter"><code>text_view</code></em>. The previous
buffer displayed by the text view is unreferenced, and a reference is
added to <em class="parameter"><code>buffer</code></em>. If you owned a reference to <em class="parameter"><code>buffer</code></em> before passing it
to this function, you must remove that reference yourself; <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
will not "adopt" it.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-buffer"></a><h3>gtk_text_view_get_buffer ()</h3>
<pre class="programlisting"><a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="returnvalue">GtkTextBuffer</span></a> *     gtk_text_view_get_buffer            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Returns the <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> being displayed by this text view.
The reference count on the buffer is not incremented; the caller
of this function won't own a new reference.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-scroll-to-mark"></a><h3>gtk_text_view_scroll_to_mark ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_scroll_to_mark        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> within_margin</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_align</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xalign</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> yalign</code></em>);</pre>
<p>
Scrolls <em class="parameter"><code>text_view</code></em> so that <em class="parameter"><code>mark</code></em> is on the screen in the position
indicated by <em class="parameter"><code>xalign</code></em> and <em class="parameter"><code>yalign</code></em>. An alignment of 0.0 indicates
left or top, 1.0 indicates right or bottom, 0.5 means center. 
If <em class="parameter"><code>use_align</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, the text scrolls the minimal distance to 
get the mark onscreen, possibly not scrolling at all. The effective 
screen for purposes of this function is reduced by a margin of size 
<em class="parameter"><code>within_margin</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mark</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>within_margin</code></em> :</span></p></td>
<td>margin as a [0.0,0.5) fraction of screen size</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>use_align</code></em> :</span></p></td>
<td>whether to use alignment arguments (if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, just
get the mark onscreen)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xalign</code></em> :</span></p></td>
<td>horizontal alignment of mark within visible area</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>yalign</code></em> :</span></p></td>
<td>vertical alignment of mark within visible area</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-scroll-to-iter"></a><h3>gtk_text_view_scroll_to_iter ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_scroll_to_iter        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> within_margin</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_align</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xalign</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> yalign</code></em>);</pre>
<p>
Scrolls <em class="parameter"><code>text_view</code></em> so that <em class="parameter"><code>iter</code></em> is on the screen in the position
indicated by <em class="parameter"><code>xalign</code></em> and <em class="parameter"><code>yalign</code></em>. An alignment of 0.0 indicates
left or top, 1.0 indicates right or bottom, 0.5 means center. 
If <em class="parameter"><code>use_align</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, the text scrolls the minimal distance to 
get the mark onscreen, possibly not scrolling at all. The effective 
screen for purposes of this function is reduced by a margin of size 
<em class="parameter"><code>within_margin</code></em>.
</p>
<p>
Note that this function uses the currently-computed height of the
lines in the text buffer. Line heights are computed in an idle 
handler; so this function may not have the desired effect if it's 
called before the height computations. To avoid oddness, consider 
using <a class="link" href="GtkTextView.html#gtk-text-view-scroll-to-mark" title="gtk_text_view_scroll_to_mark ()"><code class="function">gtk_text_view_scroll_to_mark()</code></a> which saves a point to be 
scrolled to after line validation.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>within_margin</code></em> :</span></p></td>
<td>margin as a [0.0,0.5) fraction of screen size</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>use_align</code></em> :</span></p></td>
<td>whether to use alignment arguments (if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>,
just get the mark onscreen)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xalign</code></em> :</span></p></td>
<td>horizontal alignment of mark within visible area</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>yalign</code></em> :</span></p></td>
<td>vertical alignment of mark within visible area</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if scrolling occurred</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-scroll-mark-onscreen"></a><h3>gtk_text_view_scroll_mark_onscreen ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_scroll_mark_onscreen  (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>);</pre>
<p>
Scrolls <em class="parameter"><code>text_view</code></em> the minimum distance such that <em class="parameter"><code>mark</code></em> is contained
within the visible area of the widget.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mark</code></em> :</span></p></td>
<td>a mark in the buffer for <em class="parameter"><code>text_view</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-move-mark-onscreen"></a><h3>gtk_text_view_move_mark_onscreen ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_move_mark_onscreen    (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>);</pre>
<p>
Moves a mark within the buffer so that it's
located within the currently-visible text area.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mark</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the mark moved (wasn't already onscreen)</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-place-cursor-onscreen"></a><h3>gtk_text_view_place_cursor_onscreen ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_place_cursor_onscreen (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Moves the cursor to the currently visible region of the
buffer, it it isn't there already.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the cursor had to be moved.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-visible-rect"></a><h3>gtk_text_view_get_visible_rect ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_get_visible_rect      (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../gdk/gdk-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *visible_rect</code></em>);</pre>
<p>
Fills <em class="parameter"><code>visible_rect</code></em> with the currently-visible
region of the buffer, in buffer coordinates. Convert to window coordinates
with <a class="link" href="GtkTextView.html#gtk-text-view-buffer-to-window-coords" title="gtk_text_view_buffer_to_window_coords ()"><code class="function">gtk_text_view_buffer_to_window_coords()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>visible_rect</code></em> :</span></p></td>
<td>rectangle to fill. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-iter-location"></a><h3>gtk_text_view_get_iter_location ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_get_iter_location     (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="../gdk/gdk-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *location</code></em>);</pre>
<p>
Gets a rectangle which roughly contains the character at <em class="parameter"><code>iter</code></em>.
The rectangle position is in buffer coordinates; use
<a class="link" href="GtkTextView.html#gtk-text-view-buffer-to-window-coords" title="gtk_text_view_buffer_to_window_coords ()"><code class="function">gtk_text_view_buffer_to_window_coords()</code></a> to convert these
coordinates to coordinates for one of the windows in the text view.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>location</code></em> :</span></p></td>
<td>bounds of the character at <em class="parameter"><code>iter</code></em>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-line-at-y"></a><h3>gtk_text_view_get_line_at_y ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_get_line_at_y         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *target_iter</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *line_top</code></em>);</pre>
<p>
Gets the <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> at the start of the line containing
the coordinate <em class="parameter"><code>y</code></em>. <em class="parameter"><code>y</code></em> is in buffer coordinates, convert from
window coordinates with <a class="link" href="GtkTextView.html#gtk-text-view-window-to-buffer-coords" title="gtk_text_view_window_to_buffer_coords ()"><code class="function">gtk_text_view_window_to_buffer_coords()</code></a>.
If non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, <em class="parameter"><code>line_top</code></em> will be filled with the coordinate of the top
edge of the line.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>target_iter</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>a y coordinate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>line_top</code></em> :</span></p></td>
<td>return location for top coordinate of the line. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-line-yrange"></a><h3>gtk_text_view_get_line_yrange ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_get_line_yrange       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *y</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *height</code></em>);</pre>
<p>
Gets the y coordinate of the top of the line containing <em class="parameter"><code>iter</code></em>,
and the height of the line. The coordinate is a buffer coordinate;
convert to window coordinates with <a class="link" href="GtkTextView.html#gtk-text-view-buffer-to-window-coords" title="gtk_text_view_buffer_to_window_coords ()"><code class="function">gtk_text_view_buffer_to_window_coords()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>return location for a y coordinate. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td>return location for a height. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-iter-at-location"></a><h3>gtk_text_view_get_iter_at_location ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_get_iter_at_location  (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);</pre>
<p>
Retrieves the iterator at buffer coordinates <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>. Buffer
coordinates are coordinates for the entire buffer, not just the
currently-displayed portion.  If you have coordinates from an
event, you have to convert those to buffer coordinates with
<a class="link" href="GtkTextView.html#gtk-text-view-window-to-buffer-coords" title="gtk_text_view_window_to_buffer_coords ()"><code class="function">gtk_text_view_window_to_buffer_coords()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>x position, in buffer coordinates</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>y position, in buffer coordinates</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-iter-at-position"></a><h3>gtk_text_view_get_iter_at_position ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_get_iter_at_position  (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *trailing</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);</pre>
<p>
Retrieves the iterator pointing to the character at buffer 
coordinates <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>. Buffer coordinates are coordinates for 
the entire buffer, not just the currently-displayed portion.  
If you have coordinates from an event, you have to convert 
those to buffer coordinates with 
<a class="link" href="GtkTextView.html#gtk-text-view-window-to-buffer-coords" title="gtk_text_view_window_to_buffer_coords ()"><code class="function">gtk_text_view_window_to_buffer_coords()</code></a>.
</p>
<p>
Note that this is different from <a class="link" href="GtkTextView.html#gtk-text-view-get-iter-at-location" title="gtk_text_view_get_iter_at_location ()"><code class="function">gtk_text_view_get_iter_at_location()</code></a>,
which returns cursor locations, i.e. positions <span class="emphasis"><em>between</em></span>
characters.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>trailing</code></em> :</span></p></td>
<td>if non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, location to store an integer indicating where
in the grapheme the user clicked. It will either be
zero, or the number of characters in the grapheme.
0 represents the trailing edge of the grapheme. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>x position, in buffer coordinates</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>y position, in buffer coordinates</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-buffer-to-window-coords"></a><h3>gtk_text_view_buffer_to_window_coords ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_buffer_to_window_coords
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> buffer_x</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> buffer_y</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *window_x</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *window_y</code></em>);</pre>
<p>
Converts coordinate (<em class="parameter"><code>buffer_x</code></em>, <em class="parameter"><code>buffer_y</code></em>) to coordinates for the window
<em class="parameter"><code>win</code></em>, and stores the result in (<em class="parameter"><code>window_x</code></em>, <em class="parameter"><code>window_y</code></em>). 
</p>
<p>
Note that you can't convert coordinates for a nonexisting window (see 
<a class="link" href="GtkTextView.html#gtk-text-view-set-border-window-size" title="gtk_text_view_set_border_window_size ()"><code class="function">gtk_text_view_set_border_window_size()</code></a>).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>win</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> except <span class="type">GTK_TEXT_WINDOW_PRIVATE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer_x</code></em> :</span></p></td>
<td>buffer x coordinate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer_y</code></em> :</span></p></td>
<td>buffer y coordinate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>window_x</code></em> :</span></p></td>
<td>window x coordinate return location or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>window_y</code></em> :</span></p></td>
<td>window y coordinate return location or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-window-to-buffer-coords"></a><h3>gtk_text_view_window_to_buffer_coords ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_window_to_buffer_coords
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> window_x</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> window_y</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *buffer_x</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *buffer_y</code></em>);</pre>
<p>
Converts coordinates on the window identified by <em class="parameter"><code>win</code></em> to buffer
coordinates, storing the result in (<em class="parameter"><code>buffer_x</code></em>,<em class="parameter"><code>buffer_y</code></em>).
</p>
<p>
Note that you can't convert coordinates for a nonexisting window (see 
<a class="link" href="GtkTextView.html#gtk-text-view-set-border-window-size" title="gtk_text_view_set_border_window_size ()"><code class="function">gtk_text_view_set_border_window_size()</code></a>).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>win</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> except <span class="type">GTK_TEXT_WINDOW_PRIVATE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>window_x</code></em> :</span></p></td>
<td>window x coordinate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>window_y</code></em> :</span></p></td>
<td>window y coordinate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer_x</code></em> :</span></p></td>
<td>buffer x coordinate return location or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer_y</code></em> :</span></p></td>
<td>buffer y coordinate return location or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-window"></a><h3>gtk_text_view_get_window ()</h3>
<pre class="programlisting"><a href="../gdk/gdk-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         gtk_text_view_get_window            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>);</pre>
<p>
Retrieves the <a href="../gdk/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> corresponding to an area of the text view;
possible windows include the overall widget window, child windows
on the left, right, top, bottom, and the window that displays the
text buffer. Windows are <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> and nonexistent if their width or
height is 0, and are nonexistent before the widget has been
realized.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>win</code></em> :</span></p></td>
<td>window to get</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a href="../gdk/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-window-type"></a><h3>gtk_text_view_get_window_type ()</h3>
<pre class="programlisting"><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="returnvalue">GtkTextWindowType</span></a>   gtk_text_view_get_window_type       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../gdk/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>);</pre>
<p>
Usually used to find out which window an event corresponds to.
If you connect to an event signal on <em class="parameter"><code>text_view</code></em>, this function
should be called on <code class="literal">event-&gt;window</code> to
see which window it was.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
<td>a window type</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the window type.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-border-window-size"></a><h3>gtk_text_view_set_border_window_size ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_border_window_size
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> type</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> size</code></em>);</pre>
<p>
Sets the width of <code class="literal">GTK_TEXT_WINDOW_LEFT</code> or <code class="literal">GTK_TEXT_WINDOW_RIGHT</code>,
or the height of <code class="literal">GTK_TEXT_WINDOW_TOP</code> or <code class="literal">GTK_TEXT_WINDOW_BOTTOM</code>.
Automatically destroys the corresponding window if the size is set
to 0, and creates the window if the size is set to non-zero.  This
function can only be used for the "border windows," it doesn't work
with <span class="type">GTK_TEXT_WINDOW_WIDGET</span>, <span class="type">GTK_TEXT_WINDOW_TEXT</span>, or
<span class="type">GTK_TEXT_WINDOW_PRIVATE</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td>window to affect</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>width or height of the window</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-border-window-size"></a><h3>gtk_text_view_get_border_window_size ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_border_window_size
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> type</code></em>);</pre>
<p>
Gets the width of the specified border window. See
<a class="link" href="GtkTextView.html#gtk-text-view-set-border-window-size" title="gtk_text_view_set_border_window_size ()"><code class="function">gtk_text_view_set_border_window_size()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td>window to return size from</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>width of window</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-forward-display-line"></a><h3>gtk_text_view_forward_display_line ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_forward_display_line  (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
<p>
Moves the given <em class="parameter"><code>iter</code></em> forward by one display (wrapped) line.
A display line is different from a paragraph. Paragraphs are
separated by newlines or other paragraph separator characters.
Display lines are created by line-wrapping a paragraph. If
wrapping is turned off, display lines and paragraphs will be the
same. Display lines are divided differently for each view, since
they depend on the view's width; paragraphs are the same in all
views, since they depend on the contents of the <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>iter</code></em> was moved and is not on the end iterator</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-backward-display-line"></a><h3>gtk_text_view_backward_display_line ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_backward_display_line (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
<p>
Moves the given <em class="parameter"><code>iter</code></em> backward by one display (wrapped) line.
A display line is different from a paragraph. Paragraphs are
separated by newlines or other paragraph separator characters.
Display lines are created by line-wrapping a paragraph. If
wrapping is turned off, display lines and paragraphs will be the
same. Display lines are divided differently for each view, since
they depend on the view's width; paragraphs are the same in all
views, since they depend on the contents of the <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>iter</code></em> was moved and is not on the end iterator</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-forward-display-line-end"></a><h3>gtk_text_view_forward_display_line_end ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_forward_display_line_end
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
<p>
Moves the given <em class="parameter"><code>iter</code></em> forward to the next display line end.
A display line is different from a paragraph. Paragraphs are
separated by newlines or other paragraph separator characters.
Display lines are created by line-wrapping a paragraph. If
wrapping is turned off, display lines and paragraphs will be the
same. Display lines are divided differently for each view, since
they depend on the view's width; paragraphs are the same in all
views, since they depend on the contents of the <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>iter</code></em> was moved and is not on the end iterator</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-backward-display-line-start"></a><h3>gtk_text_view_backward_display_line_start ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_backward_display_line_start
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
<p>
Moves the given <em class="parameter"><code>iter</code></em> backward to the next display line start.
A display line is different from a paragraph. Paragraphs are
separated by newlines or other paragraph separator characters.
Display lines are created by line-wrapping a paragraph. If
wrapping is turned off, display lines and paragraphs will be the
same. Display lines are divided differently for each view, since
they depend on the view's width; paragraphs are the same in all
views, since they depend on the contents of the <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>iter</code></em> was moved and is not on the end iterator</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-starts-display-line"></a><h3>gtk_text_view_starts_display_line ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_starts_display_line   (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
<p>
Determines whether <em class="parameter"><code>iter</code></em> is at the start of a display line.
See <a class="link" href="GtkTextView.html#gtk-text-view-forward-display-line" title="gtk_text_view_forward_display_line ()"><code class="function">gtk_text_view_forward_display_line()</code></a> for an explanation of
display lines vs. paragraphs.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>iter</code></em> begins a wrapped line</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-move-visually"></a><h3>gtk_text_view_move_visually ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_move_visually         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> count</code></em>);</pre>
<p>
Move the iterator a given number of characters visually, treating
it as the strong cursor position. If <em class="parameter"><code>count</code></em> is positive, then the
new strong cursor position will be <em class="parameter"><code>count</code></em> positions to the right of
the old cursor position. If <em class="parameter"><code>count</code></em> is negative then the new strong
cursor position will be <em class="parameter"><code>count</code></em> positions to the left of the old
cursor position.
</p>
<p>
In the presence of bi-directional text, the correspondence
between logical and visual order will depend on the direction
of the current run, and there may be jumps when the cursor
is moved off of the end of a run.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
<td>number of characters to move (negative moves left,
positive moves right)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>iter</code></em> moved and is not on the end iterator</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-add-child-at-anchor"></a><h3>gtk_text_view_add_child_at_anchor ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_add_child_at_anchor   (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);</pre>
<p>
Adds a child widget in the text buffer, at the given <em class="parameter"><code>anchor</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
<td>a <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>anchor</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> in the <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> for <em class="parameter"><code>text_view</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextChildAnchor-struct"></a><h3>struct GtkTextChildAnchor</h3>
<pre class="programlisting">struct GtkTextChildAnchor;</pre>
<p>
A <span class="structname">GtkTextChildAnchor</span> is a spot in the buffer
where child widgets can be "anchored" (inserted inline, as if they were
characters). The anchor can have multiple widgets anchored, to allow for
multiple views.
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-child-anchor-new"></a><h3>gtk_text_child_anchor_new ()</h3>
<pre class="programlisting"><a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="returnvalue">GtkTextChildAnchor</span></a> * gtk_text_child_anchor_new          (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new <a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a>. Usually you would then insert
it into a <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> with <a class="link" href="GtkTextBuffer.html#gtk-text-buffer-insert-child-anchor" title="gtk_text_buffer_insert_child_anchor ()"><code class="function">gtk_text_buffer_insert_child_anchor()</code></a>.
To perform the creation and insertion in one step, use the
convenience function <a class="link" href="GtkTextBuffer.html#gtk-text-buffer-create-child-anchor" title="gtk_text_buffer_create_child_anchor ()"><code class="function">gtk_text_buffer_create_child_anchor()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-child-anchor-get-widgets"></a><h3>gtk_text_child_anchor_get_widgets ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             gtk_text_child_anchor_get_widgets   (<em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);</pre>
<p>
Gets a list of all widgets anchored at this child anchor.
The returned list should be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>anchor</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>list of widgets anchored at <em class="parameter"><code>anchor</code></em>. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GtkWidget][<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-child-anchor-get-deleted"></a><h3>gtk_text_child_anchor_get_deleted ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_child_anchor_get_deleted   (<em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);</pre>
<p>
Determines whether a child anchor has been deleted from
the buffer. Keep in mind that the child anchor will be
unreferenced when removed from the buffer, so you need to
hold your own reference (with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-ref"><code class="function">g_object_ref()</code></a>) if you plan
to use this function — otherwise all deleted child anchors
will also be finalized.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>anchor</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the child anchor has been deleted from its buffer</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-add-child-in-window"></a><h3>gtk_text_view_add_child_in_window ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_add_child_in_window   (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> which_window</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xpos</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ypos</code></em>);</pre>
<p>
Adds a child at fixed coordinates in one of the text widget's
windows. The window must have nonzero size (see
<a class="link" href="GtkTextView.html#gtk-text-view-set-border-window-size" title="gtk_text_view_set_border_window_size ()"><code class="function">gtk_text_view_set_border_window_size()</code></a>). Note that the child
coordinates are given relative to the <a href="../gdk/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> in question, and
that these coordinates have no sane relationship to scrolling. When
placing a child in <span class="type">GTK_TEXT_WINDOW_WIDGET</span>, scrolling is
irrelevant, the child floats above all scrollable areas. But when
placing a child in one of the scrollable windows (border windows or
text window), you'll need to compute the child's correct position
in buffer coordinates any time scrolling occurs or buffer changes
occur, and then call <a class="link" href="GtkTextView.html#gtk-text-view-move-child" title="gtk_text_view_move_child ()"><code class="function">gtk_text_view_move_child()</code></a> to update the
child's position. Unfortunately there's no good way to detect that
scrolling has occurred, using the current API; a possible hack
would be to update all child positions when the scroll adjustments
change or the text buffer changes. See bug 64518 on
bugzilla.gnome.org for status of fixing this issue.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
<td>a <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>which_window</code></em> :</span></p></td>
<td>which window the child should appear in</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xpos</code></em> :</span></p></td>
<td>X position of child in window coordinates</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ypos</code></em> :</span></p></td>
<td>Y position of child in window coordinates</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-move-child"></a><h3>gtk_text_view_move_child ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_move_child            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xpos</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ypos</code></em>);</pre>
<p>
Updates the position of a child, as for <a class="link" href="GtkTextView.html#gtk-text-view-add-child-in-window" title="gtk_text_view_add_child_in_window ()"><code class="function">gtk_text_view_add_child_in_window()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
<td>child widget already added to the text view</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xpos</code></em> :</span></p></td>
<td>new X position in window coordinates</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ypos</code></em> :</span></p></td>
<td>new Y position in window coordinates</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-wrap-mode"></a><h3>gtk_text_view_set_wrap_mode ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_wrap_mode         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkTextTag.html#GtkWrapMode" title="enum GtkWrapMode"><span class="type">GtkWrapMode</span></a> wrap_mode</code></em>);</pre>
<p>
Sets the line wrapping for the view.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>wrap_mode</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextTag.html#GtkWrapMode" title="enum GtkWrapMode"><span class="type">GtkWrapMode</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-wrap-mode"></a><h3>gtk_text_view_get_wrap_mode ()</h3>
<pre class="programlisting"><a class="link" href="GtkTextTag.html#GtkWrapMode" title="enum GtkWrapMode"><span class="returnvalue">GtkWrapMode</span></a>         gtk_text_view_get_wrap_mode         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Gets the line wrapping for the view.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the line wrap setting</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-editable"></a><h3>gtk_text_view_set_editable ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_editable          (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre>
<p>
Sets the default editability of the <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>. You can override
this default setting with tags in the buffer, using the "editable"
attribute of tags.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
<td>whether it's editable</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-editable"></a><h3>gtk_text_view_get_editable ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_get_editable          (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Returns the default editability of the <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>. Tags in the
buffer may override this setting for some ranges of text.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether text is editable by default</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-cursor-visible"></a><h3>gtk_text_view_set_cursor_visible ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_cursor_visible    (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre>
<p>
Toggles whether the insertion point is displayed. A buffer with no editable
text probably shouldn't have a visible cursor, so you may want to turn
the cursor off.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
<td>whether to show the insertion cursor</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-cursor-visible"></a><h3>gtk_text_view_get_cursor_visible ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_get_cursor_visible    (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Find out whether the cursor is being displayed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether the insertion mark is visible</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-overwrite"></a><h3>gtk_text_view_set_overwrite ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_overwrite         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> overwrite</code></em>);</pre>
<p>
Changes the <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> overwrite mode.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>overwrite</code></em> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to turn on overwrite mode, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> to turn it off</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-overwrite"></a><h3>gtk_text_view_get_overwrite ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_get_overwrite         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Returns whether the <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> is in overwrite mode or not.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether <em class="parameter"><code>text_view</code></em> is in overwrite mode or not.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-pixels-above-lines"></a><h3>gtk_text_view_set_pixels_above_lines ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_pixels_above_lines
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> pixels_above_lines</code></em>);</pre>
<p>
Sets the default number of blank pixels above paragraphs in <em class="parameter"><code>text_view</code></em>.
Tags in the buffer for <em class="parameter"><code>text_view</code></em> may override the defaults.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pixels_above_lines</code></em> :</span></p></td>
<td>pixels above paragraphs</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-pixels-above-lines"></a><h3>gtk_text_view_get_pixels_above_lines ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_pixels_above_lines
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Gets the default number of pixels to put above paragraphs.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>default number of pixels above paragraphs</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-pixels-below-lines"></a><h3>gtk_text_view_set_pixels_below_lines ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_pixels_below_lines
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> pixels_below_lines</code></em>);</pre>
<p>
Sets the default number of pixels of blank space
to put below paragraphs in <em class="parameter"><code>text_view</code></em>. May be overridden
by tags applied to <em class="parameter"><code>text_view</code></em>'s buffer.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pixels_below_lines</code></em> :</span></p></td>
<td>pixels below paragraphs</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-pixels-below-lines"></a><h3>gtk_text_view_get_pixels_below_lines ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_pixels_below_lines
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Gets the value set by <a class="link" href="GtkTextView.html#gtk-text-view-set-pixels-below-lines" title="gtk_text_view_set_pixels_below_lines ()"><code class="function">gtk_text_view_set_pixels_below_lines()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>default number of blank pixels below paragraphs</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-pixels-inside-wrap"></a><h3>gtk_text_view_set_pixels_inside_wrap ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_pixels_inside_wrap
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> pixels_inside_wrap</code></em>);</pre>
<p>
Sets the default number of pixels of blank space to leave between
display/wrapped lines within a paragraph. May be overridden by
tags in <em class="parameter"><code>text_view</code></em>'s buffer.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pixels_inside_wrap</code></em> :</span></p></td>
<td>default number of pixels between wrapped lines</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-pixels-inside-wrap"></a><h3>gtk_text_view_get_pixels_inside_wrap ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_pixels_inside_wrap
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Gets the value set by <a class="link" href="GtkTextView.html#gtk-text-view-set-pixels-inside-wrap" title="gtk_text_view_set_pixels_inside_wrap ()"><code class="function">gtk_text_view_set_pixels_inside_wrap()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>default number of pixels of blank space between wrapped lines</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-justification"></a><h3>gtk_text_view_set_justification ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_justification     (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="type">GtkJustification</span></a> justification</code></em>);</pre>
<p>
Sets the default justification of text in <em class="parameter"><code>text_view</code></em>.
Tags in the view's buffer may override the default.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>justification</code></em> :</span></p></td>
<td>justification</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-justification"></a><h3>gtk_text_view_get_justification ()</h3>
<pre class="programlisting"><a class="link" href="gtk-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="returnvalue">GtkJustification</span></a>    gtk_text_view_get_justification     (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Gets the default justification of paragraphs in <em class="parameter"><code>text_view</code></em>.
Tags in the buffer may override the default.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>default justification</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-left-margin"></a><h3>gtk_text_view_set_left_margin ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_left_margin       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> left_margin</code></em>);</pre>
<p>
Sets the default left margin for text in <em class="parameter"><code>text_view</code></em>.
Tags in the buffer may override the default.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>left_margin</code></em> :</span></p></td>
<td>left margin in pixels</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-left-margin"></a><h3>gtk_text_view_get_left_margin ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_left_margin       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Gets the default left margin size of paragraphs in the <em class="parameter"><code>text_view</code></em>.
Tags in the buffer may override the default.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>left margin in pixels</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-right-margin"></a><h3>gtk_text_view_set_right_margin ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_right_margin      (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> right_margin</code></em>);</pre>
<p>
Sets the default right margin for text in the text view.
Tags in the buffer may override the default.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>right_margin</code></em> :</span></p></td>
<td>right margin in pixels</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-right-margin"></a><h3>gtk_text_view_get_right_margin ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_right_margin      (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Gets the default right margin for text in <em class="parameter"><code>text_view</code></em>. Tags
in the buffer may override the default.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>right margin in pixels</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-indent"></a><h3>gtk_text_view_set_indent ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_indent            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> indent</code></em>);</pre>
<p>
Sets the default indentation for paragraphs in <em class="parameter"><code>text_view</code></em>.
Tags in the buffer may override the default.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>indent</code></em> :</span></p></td>
<td>indentation in pixels</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-indent"></a><h3>gtk_text_view_get_indent ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_indent            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Gets the default indentation of paragraphs in <em class="parameter"><code>text_view</code></em>.
Tags in the view's buffer may override the default.
The indentation may be negative.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>number of pixels of indentation</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-tabs"></a><h3>gtk_text_view_set_tabs ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_tabs              (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#PangoTabArray"><span class="type">PangoTabArray</span></a> *tabs</code></em>);</pre>
<p>
Sets the default tab stops for paragraphs in <em class="parameter"><code>text_view</code></em>.
Tags in the buffer may override the default.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>tabs</code></em> :</span></p></td>
<td>tabs as a <a href="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#PangoTabArray"><span class="type">PangoTabArray</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-tabs"></a><h3>gtk_text_view_get_tabs ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#PangoTabArray"><span class="returnvalue">PangoTabArray</span></a> *     gtk_text_view_get_tabs              (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Gets the default tabs for <em class="parameter"><code>text_view</code></em>. Tags in the buffer may
override the defaults. The returned array will be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
"standard" (8-space) tabs are used. Free the return value
with <a href="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#pango-tab-array-free"><code class="function">pango_tab_array_free()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>copy of default tab array, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if "standard"
tabs are used; must be freed with <a href="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#pango-tab-array-free"><code class="function">pango_tab_array_free()</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-accepts-tab"></a><h3>gtk_text_view_set_accepts_tab ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_accepts_tab       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> accepts_tab</code></em>);</pre>
<p>
Sets the behavior of the text widget when the Tab key is pressed. 
If <em class="parameter"><code>accepts_tab</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, a tab character is inserted. If <em class="parameter"><code>accepts_tab</code></em> 
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> the keyboard focus is moved to the next widget in the focus 
chain.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>A <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>accepts_tab</code></em> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if pressing the Tab key should insert a tab
character, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, if pressing the Tab key should move the
keyboard focus.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-accepts-tab"></a><h3>gtk_text_view_get_accepts_tab ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_get_accepts_tab       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Returns whether pressing the Tab key inserts a tab characters.
<a class="link" href="GtkTextView.html#gtk-text-view-set-accepts-tab" title="gtk_text_view_set_accepts_tab ()"><code class="function">gtk_text_view_set_accepts_tab()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>A <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if pressing the Tab key inserts a tab character,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if pressing the Tab key moves the keyboard focus.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-default-attributes"></a><h3>gtk_text_view_get_default_attributes ()</h3>
<pre class="programlisting"><a class="link" href="GtkTextTag.html#GtkTextAttributes" title="struct GtkTextAttributes"><span class="returnvalue">GtkTextAttributes</span></a> * gtk_text_view_get_default_attributes
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Obtains a copy of the default text attributes. These are the
attributes used for text unless a tag overrides them.
You'd typically pass the default attributes in to
<a class="link" href="GtkTextIter.html#gtk-text-iter-get-attributes" title="gtk_text_iter_get_attributes ()"><code class="function">gtk_text_iter_get_attributes()</code></a> in order to get the
attributes in effect at a given text position.
</p>
<p>
The return value is a copy owned by the caller of this function,
and should be freed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="GtkTextTag.html#GtkTextAttributes" title="struct GtkTextAttributes"><span class="type">GtkTextAttributes</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-im-context-filter-keypress"></a><h3>gtk_text_view_im_context_filter_keypress ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_im_context_filter_keypress
                                                        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../gdk/gdk-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> *event</code></em>);</pre>
<p>
Allow the <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> input method to internally handle key press
and release events. If this function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then no further
processing should be done for this key event. See
<a class="link" href="GtkIMContext.html#gtk-im-context-filter-keypress" title="gtk_im_context_filter_keypress ()"><code class="function">gtk_im_context_filter_keypress()</code></a>.
</p>
<p>
Note that you are expected to call this function from your handler
when overriding key event handling. This is needed in the case when
you need to insert your own key handling between the input method
and the default key event handling of the <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>.
</p>
<p>
</p>
<div class="informalexample">
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td class="listing_lines" align="right"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14</pre></td>
        <td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean">gboolean</a></span>
<span class="function">gtk_foo_bar_key_press_event</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal">   </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
<span class="normal">                             </span><span class="usertype">GdkEventKey</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">)</span>
<span class="cbracket">{</span>
<span class="normal">  </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">((</span><span class="normal">key</span><span class="symbol">-&gt;</span><span class="normal">keyval </span><span class="symbol">==</span><span class="normal"> GDK_Return </span><span class="symbol">||</span><span class="normal"> key</span><span class="symbol">-&gt;</span><span class="normal">keyval </span><span class="symbol">==</span><span class="normal"> GDK_KP_Enter</span><span class="symbol">))</span>
<span class="normal">    </span><span class="cbracket">{</span>
<span class="normal">      </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="GtkTextView.html#gtk-text-view-im-context-filter-keypress">gtk_text_view_im_context_filter_keypress</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_TEXT_VIEW</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">view</span><span class="symbol">),</span><span class="normal"> event</span><span class="symbol">))</span>
<span class="normal">        </span><span class="keyword">return</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">;</span>
<span class="normal">    </span><span class="cbracket">}</span>

<span class="normal">    </span><span class="comment">/* Do some stuff */</span>

<span class="normal">  </span><span class="keyword">return</span><span class="normal"> </span><span class="function">GTK_WIDGET_CLASS</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gtk_foo_bar_parent_class</span><span class="symbol">)-&gt;</span><span class="function">key_press_event</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">,</span><span class="normal"> event</span><span class="symbol">);</span>
<span class="cbracket">}</span></pre></td>
      </tr>
    </tbody>
  </table>
</div>

<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>event</code></em> :</span></p></td>
<td>the key event</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the input method handled the key event.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.22</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-reset-im-context"></a><h3>gtk_text_view_reset_im_context ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_reset_im_context      (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Reset the input method context of the text view if needed.
</p>
<p>
This can be necessary in the case where modifying the buffer
would confuse on-going input method behavior.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.22</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-hadjustment"></a><h3>gtk_text_view_get_hadjustment ()</h3>
<pre class="programlisting"><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     gtk_text_view_get_hadjustment       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Gets the horizontal-scrolling <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>pointer to the horizontal <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.22</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-vadjustment"></a><h3>gtk_text_view_get_vadjustment ()</h3>
<pre class="programlisting"><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     gtk_text_view_get_vadjustment       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Gets the vertical-scrolling <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>pointer to the vertical <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.22</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-TEXT-VIEW-PRIORITY-VALIDATE:CAPS"></a><h3>GTK_TEXT_VIEW_PRIORITY_VALIDATE</h3>
<pre class="programlisting">#define GTK_TEXT_VIEW_PRIORITY_VALIDATE (GDK_PRIORITY_REDRAW + 5)
</pre>
<p>
The priority at which the text view validates onscreen lines
in an idle job in the background.
</p>
</div>
</div>
<div class="refsect1">
<a name="GtkTextView.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GtkTextView--accepts-tab"></a><h3>The <code class="literal">"accepts-tab"</code> property</h3>
<pre class="programlisting">  "accepts-tab"              <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write</pre>
<p>Whether Tab will result in a tab character being entered.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView--buffer"></a><h3>The <code class="literal">"buffer"</code> property</h3>
<pre class="programlisting">  "buffer"                   <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>*        : Read / Write</pre>
<p>The buffer which is displayed.</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView--cursor-visible"></a><h3>The <code class="literal">"cursor-visible"</code> property</h3>
<pre class="programlisting">  "cursor-visible"           <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write</pre>
<p>If the insertion cursor is shown.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView--editable"></a><h3>The <code class="literal">"editable"</code> property</h3>
<pre class="programlisting">  "editable"                 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write</pre>
<p>Whether the text can be modified by the user.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView--im-module"></a><h3>The <code class="literal">"im-module"</code> property</h3>
<pre class="programlisting">  "im-module"                <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write</pre>
<p>
Which IM (input method) module should be used for this entry.
See <a class="link" href="GtkIMContext.html" title="GtkIMContext"><span class="type">GtkIMContext</span></a>.
</p>
<p>
Setting this to a non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> value overrides the
system-wide IM module setting. See the GtkSettings 
<a class="link" href="GtkSettings.html#GtkSettings--gtk-im-module" title='The "gtk-im-module" property'><span class="type">"gtk-im-module"</span></a> property.
</p>
<p>Default value: NULL</p>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView--indent"></a><h3>The <code class="literal">"indent"</code> property</h3>
<pre class="programlisting">  "indent"                   <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
<p>Amount to indent the paragraph, in pixels.</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView--justification"></a><h3>The <code class="literal">"justification"</code> property</h3>
<pre class="programlisting">  "justification"            <a class="link" href="gtk-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="type">GtkJustification</span></a>      : Read / Write</pre>
<p>Left, right, or center justification.</p>
<p>Default value: GTK_JUSTIFY_LEFT</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView--left-margin"></a><h3>The <code class="literal">"left-margin"</code> property</h3>
<pre class="programlisting">  "left-margin"              <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
<p>Width of the left margin in pixels.</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView--overwrite"></a><h3>The <code class="literal">"overwrite"</code> property</h3>
<pre class="programlisting">  "overwrite"                <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write</pre>
<p>Whether entered text overwrites existing contents.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView--pixels-above-lines"></a><h3>The <code class="literal">"pixels-above-lines"</code> property</h3>
<pre class="programlisting">  "pixels-above-lines"       <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
<p>Pixels of blank space above paragraphs.</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView--pixels-below-lines"></a><h3>The <code class="literal">"pixels-below-lines"</code> property</h3>
<pre class="programlisting">  "pixels-below-lines"       <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
<p>Pixels of blank space below paragraphs.</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView--pixels-inside-wrap"></a><h3>The <code class="literal">"pixels-inside-wrap"</code> property</h3>
<pre class="programlisting">  "pixels-inside-wrap"       <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
<p>Pixels of blank space between wrapped lines in a paragraph.</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView--right-margin"></a><h3>The <code class="literal">"right-margin"</code> property</h3>
<pre class="programlisting">  "right-margin"             <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
<p>Width of the right margin in pixels.</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView--tabs"></a><h3>The <code class="literal">"tabs"</code> property</h3>
<pre class="programlisting">  "tabs"                     <a href="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#PangoTabArray"><span class="type">PangoTabArray</span></a>*        : Read / Write</pre>
<p>Custom tabs for this text.</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView--wrap-mode"></a><h3>The <code class="literal">"wrap-mode"</code> property</h3>
<pre class="programlisting">  "wrap-mode"                <a class="link" href="GtkTextTag.html#GtkWrapMode" title="enum GtkWrapMode"><span class="type">GtkWrapMode</span></a>           : Read / Write</pre>
<p>Whether to wrap lines never, at word boundaries, or at character boundaries.</p>
<p>Default value: GTK_WRAP_NONE</p>
</div>
</div>
<div class="refsect1">
<a name="GtkTextView.style-property-details"></a><h2>Style Property Details</h2>
<div class="refsect2">
<a name="GtkTextView--s-error-underline-color"></a><h3>The <code class="literal">"error-underline-color"</code> style property</h3>
<pre class="programlisting">  "error-underline-color"    <a href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"><span class="type">GdkColor</span></a>*             : Read</pre>
<p>Color with which to draw error-indication underlines.</p>
</div>
</div>
<div class="refsect1">
<a name="GtkTextView.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="GtkTextView-backspace"></a><h3>The <code class="literal">"backspace"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
<p>
The ::backspace signal is a
<a class="link" href="gtk-Bindings.html#keybinding-signals">keybinding signal</a> 
which gets emitted when the user asks for it.
</p>
<p>
The default bindings for this signal are
Backspace and Shift-Backspace.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>the object which received the signal</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView-copy-clipboard"></a><h3>The <code class="literal">"copy-clipboard"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
<p>
The ::copy-clipboard signal is a 
<a class="link" href="gtk-Bindings.html#keybinding-signals">keybinding signal</a> 
which gets emitted to copy the selection to the clipboard.
</p>
<p>
The default bindings for this signal are
Ctrl-c and Ctrl-Insert.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>the object which received the signal</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView-cut-clipboard"></a><h3>The <code class="literal">"cut-clipboard"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
<p>
The ::cut-clipboard signal is a 
<a class="link" href="gtk-Bindings.html#keybinding-signals">keybinding signal</a> 
which gets emitted to cut the selection to the clipboard.
</p>
<p>
The default bindings for this signal are
Ctrl-x and Shift-Delete.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>the object which received the signal</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView-delete-from-cursor"></a><h3>The <code class="literal">"delete-from-cursor"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>  *text_view,
                                                        <a class="link" href="gtk-Standard-Enumerations.html#GtkDeleteType" title="enum GtkDeleteType"><span class="type">GtkDeleteType</span></a> type,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>          count,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>      user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
<p>
The ::delete-from-cursor signal is a 
<a class="link" href="gtk-Bindings.html#keybinding-signals">keybinding signal</a> 
which gets emitted when the user initiates a text deletion.
</p>
<p>
If the <em class="parameter"><code>type</code></em> is <code class="literal">GTK_DELETE_CHARS</code>, GTK+ deletes the selection
if there is one, otherwise it deletes the requested number
of characters.
</p>
<p>
The default bindings for this signal are
Delete for deleting a character, Ctrl-Delete for 
deleting a word and Ctrl-Backspace for deleting a word 
backwords.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>the object which received the signal</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td>the granularity of the deletion, as a <a class="link" href="gtk-Standard-Enumerations.html#GtkDeleteType" title="enum GtkDeleteType"><span class="type">GtkDeleteType</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
<td>the number of <em class="parameter"><code>type</code></em> units to delete</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView-insert-at-cursor"></a><h3>The <code class="literal">"insert-at-cursor"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>       *string,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
<p>
The ::insert-at-cursor signal is a
<a class="link" href="gtk-Bindings.html#keybinding-signals">keybinding signal</a>
which gets emitted when the user initiates the insertion of a 
fixed string at the cursor.
</p>
<p>
This signal has no default bindings.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>the object which received the signal</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td>
<td>the string to insert</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView-move-cursor"></a><h3>The <code class="literal">"move-cursor"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>    *text_view,
                                                        <a class="link" href="gtk-Standard-Enumerations.html#GtkMovementStep" title="enum GtkMovementStep"><span class="type">GtkMovementStep</span></a> step,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>            count,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>        extend_selection,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>        user_data)             : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
<p>
The ::move-cursor signal is a 
<a class="link" href="gtk-Bindings.html#keybinding-signals">keybinding signal</a> 
which gets emitted when the user initiates a cursor movement. 
If the cursor is not visible in <em class="parameter"><code>text_view</code></em>, this signal causes
the viewport to be moved instead.
</p>
<p>
Applications should not connect to it, but may emit it with 
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#g-signal-emit-by-name"><code class="function">g_signal_emit_by_name()</code></a> if they need to control the cursor
programmatically.
</p>
<p>
The default bindings for this signal come in two variants,
the variant with the Shift modifier extends the selection,
the variant without the Shift modifer does not.
There are too many key combinations to list them all here.
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem">Arrow keys move by individual characters/lines</li>
<li class="listitem">Ctrl-arrow key combinations move by words/paragraphs</li>
<li class="listitem">Home/End keys move to the ends of the buffer</li>
<li class="listitem">PageUp/PageDown keys move vertically by pages</li>
<li class="listitem">Ctrl-PageUp/PageDown keys move horizontally by pages</li>
</ul></div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>the object which received the signal</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>step</code></em> :</span></p></td>
<td>the granularity of the move, as a <a class="link" href="gtk-Standard-Enumerations.html#GtkMovementStep" title="enum GtkMovementStep"><span class="type">GtkMovementStep</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
<td>the number of <em class="parameter"><code>step</code></em> units to move</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>extend_selection</code></em> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the move should extend the selection</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView-move-viewport"></a><h3>The <code class="literal">"move-viewport"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>  *text_view,
                                                        <a class="link" href="gtk-Standard-Enumerations.html#GtkScrollStep" title="enum GtkScrollStep"><span class="type">GtkScrollStep</span></a> step,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>          count,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>      user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
<p>
The ::move-viewport signal is a 
<a class="link" href="gtk-Bindings.html#keybinding-signals">keybinding signal</a> 
which can be bound to key combinations to allow the user
to move the viewport, i.e. change what part of the text view
is visible in a containing scrolled window.
</p>
<p>
There are no default bindings for this signal.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>the object which received the signal</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>step</code></em> :</span></p></td>
<td>the granularity of the move, as a <a class="link" href="gtk-Standard-Enumerations.html#GtkMovementStep" title="enum GtkMovementStep"><span class="type">GtkMovementStep</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
<td>the number of <em class="parameter"><code>step</code></em> units to move</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView-page-horizontally"></a><h3>The <code class="literal">"page-horizontally"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>         count,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>     extend_selection,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)             : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
<p>
The ::page-horizontally signal is a 
<a class="link" href="gtk-Bindings.html#keybinding-signals">keybinding signal</a> 
which can be bound to key combinations to allow the user
to initiate horizontal cursor movement by pages.  
</p>
<p>
This signal should not be used anymore, instead use the
<span class="type">"move-cursor"</span> signal with the <a href="http://library.gnome.org/devel/gtk/gtk3-Standard-Enumerations.html#GTK-MOVEMENT-HORIZONTAL-PAGES:CAPS"><span class="type">GTK_MOVEMENT_HORIZONTAL_PAGES</span></a>
granularity.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>the object which received the signal</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
<td>the number of <em class="parameter"><code>step</code></em> units to move</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>extend_selection</code></em> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the move should extend the selection</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView-paste-clipboard"></a><h3>The <code class="literal">"paste-clipboard"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
<p>
The ::paste-clipboard signal is a 
<a class="link" href="gtk-Bindings.html#keybinding-signals">keybinding signal</a> 
which gets emitted to paste the contents of the clipboard 
into the text view.
</p>
<p>
The default bindings for this signal are
Ctrl-v and Shift-Insert.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>the object which received the signal</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView-populate-popup"></a><h3>The <code class="literal">"populate-popup"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *entry,
                                                        <a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a>     *menu,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
The ::populate-popup signal gets emitted before showing the 
context menu of the text view.
</p>
<p>
If you need to add items to the context menu, connect
to this signal and append your menuitems to the <em class="parameter"><code>menu</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>The text view on which the signal is emitted</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>menu</code></em> :</span></p></td>
<td>the menu that is being populated</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView-preedit-changed"></a><h3>The <code class="literal">"preedit-changed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>       *preedit,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
<p>
If an input method is used, the typed text will not immediately
be committed to the buffer. So if you are interested in the text,
connect to this signal.
</p>
<p>
This signal is only emitted if the text at the given position
is actually editable.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>the object which received the signal</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>preedit</code></em> :</span></p></td>
<td>the current preedit string</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.20</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView-select-all"></a><h3>The <code class="literal">"select-all"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>     select,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
<p>
The ::select-all signal is a 
<a class="link" href="gtk-Bindings.html#keybinding-signals">keybinding signal</a> 
which gets emitted to select or unselect the complete
contents of the text view.
</p>
<p>
The default bindings for this signal are Ctrl-a and Ctrl-/ 
for selecting and Shift-Ctrl-a and Ctrl-\ for unselecting.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>the object which received the signal</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>select</code></em> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to select, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> to unselect</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView-set-anchor"></a><h3>The <code class="literal">"set-anchor"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
<p>
The ::set-anchor signal is a
<a class="link" href="gtk-Bindings.html#keybinding-signals">keybinding signal</a>
which gets emitted when the user initiates setting the "anchor" 
mark. The "anchor" mark gets placed at the same position as the
"insert" mark.
</p>
<p>
This signal has no default bindings.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>the object which received the signal</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView-set-scroll-adjustments"></a><h3>The <code class="literal">"set-scroll-adjustments"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>   *horizontal,
                                                        <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> *vertical,
                                                        <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> *arg2,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>       user_data)       : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
<p>
Set the scroll adjustments for the text view. Usually scrolled containers
like <a class="link" href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a> will emit this signal to connect two instances
of <a class="link" href="GtkScrollbar.html" title="GtkScrollbar"><span class="type">GtkScrollbar</span></a> to the scroll directions of the <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>horizontal</code></em> :</span></p></td>
<td>the horizontal <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>vertical</code></em> :</span></p></td>
<td>the vertical <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView-toggle-cursor-visible"></a><h3>The <code class="literal">"toggle-cursor-visible"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
<p>
The ::toggle-cursor-visible signal is a 
<a class="link" href="gtk-Bindings.html#keybinding-signals">keybinding signal</a> 
which gets emitted to toggle the visibility of the cursor.
</p>
<p>
The default binding for this signal is F7.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>the object which received the signal</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextView-toggle-overwrite"></a><h3>The <code class="literal">"toggle-overwrite"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
<p>
The ::toggle-overwrite signal is a 
<a class="link" href="gtk-Bindings.html#keybinding-signals">keybinding signal</a> 
which gets emitted to toggle the overwrite mode of the text view.
</p>
<p>
The default bindings for this signal is Insert.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>the object which received the signal</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="GtkTextView.see-also"></a><h2>See Also</h2>
<p>
<a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>, <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
</p>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>